package com.sina.auto.components.WebCaptureImpl;

import com.sina.auto.components.WebCaptureInterface.WebCapturePCwithQRcode;

import java.awt.image.BufferedImage;

import static com.sina.auto.components.WebCaptureImpl.AddQRcode.addQRcode;

public class CapturePCwithQRcode implements WebCapturePCwithQRcode {
    @Override
    public BufferedImage captureFullPageWithQRcode(String url, String zoom, boolean setHeadless) throws Exception {
       return addQRcode(url,new CapturePC().captureFullPage(url,zoom,setHeadless));
    }

    @Override
    public BufferedImage captureCurrentPageWithQRcode(String url, String zoom, boolean setHeadless) throws Exception {
        return addQRcode(url,new CapturePC().captureCurrentPage(url,zoom,setHeadless));
    }

    @Override
    public BufferedImage capturePartialPageWithQRcode(String url, String zoom, String cropheight, boolean setHeadless) throws Exception {
        return addQRcode(url,new CapturePC().capturePartialPage(url,zoom,cropheight,setHeadless));
    }
}
